package com.biubiushop.service;

import com.biubiushop.vo.OrdersVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

public interface IOrdersService {

    Serializable createOrder(String equipmentId, String commodityId, BigDecimal price, Integer buyLength,String payway) throws Exception;

    Serializable startWxMiniPay(String orderId, String amoutMoney) throws Exception;

    Serializable wxMiniNotify(HttpServletRequest request, HttpServletResponse response) throws Exception;

    String startALiPay(String orderId,String totalAmount) throws Exception;

    Serializable startAppTrans(String outBizNo) throws Exception;

    Serializable aLiNotify(HttpServletRequest request, HttpServletResponse response) throws Exception;

    List<OrdersVO> getOrderList(String userId) throws Exception;

    void execute(String equipmentId, String orderId)throws IOException;
}
